Class IndexedHeapQueue
- java.lang.Object
-
- edu.claflin.finder.logic.communities.struct.IndexedHeapQueue
-
public class IndexedHeapQueue extends java.lang.Object- Author:
- Cesar Martin
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.PriorityQueue<IndexedHeapNode>q
-
Constructor Summary
Constructors Constructor Description IndexedHeapQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, int j, double a)booleanisEmpty()IndexedHeapNodepeek()IndexedHeapNodepoll()voidset(int i, HeapNode hnn)intsize()java.lang.StringtoString()
-
-
-
Field Detail
-
q
private java.util.PriorityQueue<IndexedHeapNode> q
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
add
public void add(int i, int j, double a)
-
peek
public IndexedHeapNode peek()
-
poll
public IndexedHeapNode poll()
-
set
public void set(int i, HeapNode hnn)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-